.class Lcom/estrongs/android/pop/app/i0;
.super Ljava/lang/Object;
.source "PopVideoPlayer.java"

# interfaces
.implements Landroid/content/DialogInterface$OnClickListener;


# instance fields
.field final synthetic a:Lcom/estrongs/android/pop/app/PopVideoPlayer;


# direct methods
.method constructor <init>(Lcom/estrongs/android/pop/app/PopVideoPlayer;)V
    .locals 0

    .line 1
    iput-object p1, p0, Lcom/estrongs/android/pop/app/i0;->a:Lcom/estrongs/android/pop/app/PopVideoPlayer;

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method


# virtual methods
.method public onClick(Landroid/content/DialogInterface;I)V
    .locals 1

    .line 1
    iget-object p2, p0, Lcom/estrongs/android/pop/app/i0;->a:Lcom/estrongs/android/pop/app/PopVideoPlayer;

    invoke-static {p2}, Lcom/estrongs/android/pop/app/PopVideoPlayer;->l(Lcom/estrongs/android/pop/app/PopVideoPlayer;)Lcom/estrongs/chromecast/ChromeCastManager;

    move-result-object p2

    invoke-virtual {p2}, Lcom/estrongs/chromecast/ChromeCastManager;->isConnected()Z

    move-result p2

    if-eqz p2, :cond_0

    .line 2
    iget-object p2, p0, Lcom/estrongs/android/pop/app/i0;->a:Lcom/estrongs/android/pop/app/PopVideoPlayer;

    const/4 v0, 0x1

    invoke-static {p2, v0}, Lcom/estrongs/android/pop/app/PopVideoPlayer;->c(Lcom/estrongs/android/pop/app/PopVideoPlayer;Z)V

    goto :goto_0

    .line 3
    :cond_0
    iget-object p2, p0, Lcom/estrongs/android/pop/app/i0;->a:Lcom/estrongs/android/pop/app/PopVideoPlayer;

    invoke-static {p2}, Lcom/estrongs/android/pop/app/PopVideoPlayer;->x(Lcom/estrongs/android/pop/app/PopVideoPlayer;)Lcom/estrongs/chromecast/ChromeCastDialog;

    move-result-object p2

    if-nez p2, :cond_1

    .line 4
    iget-object p2, p0, Lcom/estrongs/android/pop/app/i0;->a:Lcom/estrongs/android/pop/app/PopVideoPlayer;

    invoke-static {p2}, Lcom/estrongs/android/pop/app/PopVideoPlayer;->y(Lcom/estrongs/android/pop/app/PopVideoPlayer;)V

    .line 5
    :cond_1
    iget-object p2, p0, Lcom/estrongs/android/pop/app/i0;->a:Lcom/estrongs/android/pop/app/PopVideoPlayer;

    invoke-static {p2}, Lcom/estrongs/android/pop/app/PopVideoPlayer;->x(Lcom/estrongs/android/pop/app/PopVideoPlayer;)Lcom/estrongs/chromecast/ChromeCastDialog;

    move-result-object p2

    invoke-virtual {p2}, Lcom/estrongs/chromecast/ChromeCastDialog;->show()V

    .line 6
    :goto_0
    invoke-interface {p1}, Landroid/content/DialogInterface;->dismiss()V

    return-void
.end method
